import styled from 'styled-components'

export const HomeWrapper = styled.div`
  width: 960px;
  margin: 56px auto 0;
  overflow: hidden;

`
export const HomeLeft = styled.div`
  width: 625px;
  margin-left: 15px;
  padding-top: 30px;
  float: left;
  .banner-img {
    width: 625px;
    height: 270px;
  }
`
export const TopicWrapper = styled.div`
  padding: 20px 0 10px 0;
  overflow:hidden;
  margin-left: -18px;
  border-bottom: 1px solid #dcdcdc;
`
export const TopicItem = styled.div`
  float: left;
  background: #f7f7f7;
  height: 32px;
  line-height: 32px;
  margin-left:18px;
  margin-bottom: 18px;
  font-size: 14px;
  color:#000;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding-right: 10px;
  .toppic-pic{
    width: 32px;
    height: 32px;
    display: block;
    float: left;
    margin-right:10px;
    padding:3px;
    box-sizing: border-box;
  }
`
export const ListItem = styled.div`
  padding: 20px 0;
  border-bottom: 1px solid #dcdcdc;
  overflow: hidden;
  .pic{
    display: block;
    width: 125px;
    height: 100px;
    float: right;
    border-radius: 10px;
  }
`
export const ListInfo = styled.div`
  width: 500px;
  float: left;
  a {
    text-decoration:none;
  }
  a:hover{
    text-decoration:underline;
  }
  .title{
    font-size: 18px;
    line-height: 27px;
    font-weight: bold;
    color:#333;
  }
  .desc {
    font-size: 13px;
    line-height: 24px;
    color: #999;
  }
`
export const HomeRight = styled.div`
  width: 280px;
  float: right;
  margin-top:10px;
`
export const RecommdCover = styled.div`
  width: 100%;
  position:relative;
  cursor: pointer;
  margin-bottom:30px;
  .download{
    width: 150px;
    height: 150px;
    border: 1px solid #f0f0f0;
    position:absolute;
    background:#fff;
    left: 60px;
    bottom: 90px;
    img {
      width: 130px;
      height: 130px;
      margin: 10px;
    }
  }
`
export const RecommdPic = styled.div`
  width: 280px;
  height: 50px;
  background: url(${(props)=> props.imgUrl});
  background-size: contain;
`
export const RecommdDown = styled.div`
  width:100%;
  padding: 10px 22px;
  margin-top: 30px;
  box-sizing: border-box;
  border:1px solid #f0f0f0;
  overflow: hidden;
  background: #fff;
  img{
    width: 60px;
    height: 60px;
    float:left;
  } 

  .downRight {
    float:left;
    margin-top: 14px;
    margin-left: 14px;
    width: 143px;
    .title {
      font-size: 15px;
      color: #333;
    }
    .desc{
      margin-top: 4px;
      font-size: 13px;
      color: #999;
    }
  }
`
export const WriterWrapper = styled.div`
  width: 280px;
  position:relative;
  .find-more {
    position: absolute;
    padding: 13px 12px;
    left:0;
    margin-top: 20px;
    width: 280px;
    font-size: 13px;
    text-align: center;
    color: #787878;
    background-color: #f7f7f7;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
  }
  
`
export const WriterTitle = styled.div`
  width: 280px;
  line-height: 19px;
  color:#333;
  overflow:hidden;
  span{
    font-size: 14px;
    color:#969696;
  }
  .recommdwriter {
    float:left;
  }
  .changewriter {
    float: right;
    cursor: pointer;
    .iconfont {
      margin-right: 3px;
      font-size: 10px;
    }
  }
`
export const WriterContent = styled.div`
  width: 280px;
  margin-top:10px;
  overflow: hidden;
`
export const WriterItem = styled.div`
  margin-top: 15px;
  line-height: 20px;
  overflow:hidden;
  width: 280px;
  img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    float:left;
    margin-right: 10px;
    cursor: pointer;
  }
  .itemCenter {
    float:left;
    padding-top: 5px;
    font-size: 14px;
    display: block;
    color: #333;
    .writername {
      cursor: pointer;
    }
    .number{
      font-size: 12px;
      color: #969696;
    }
  }
  .see{
    width: 60px;
    float:right;
    cursor: pointer;
    margin-top: 5px;
    text-align: right;
    padding: 0;
    font-size: 13px;
    color: #42c02e;
  }
`
export const LoadMore = styled.div`
  margin:30px 0;
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #a5a5a5;
  border-radius: 20px;
  color: #fff;
  cursor:pointer;
`

export const BackTop = styled.div`
  position:fixed;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  right: 30px;
  bottom: 100px;
  border: 1px solid #ccc;
  .iconfont{
    font-size: 24px;
    color: #999;
  }
`